package models

import (

	"go-admin/common/models"

)

type Favorites struct {
    models.Model
    
    UserId int64 `json:"userId" gorm:"type:bigint;comment:用户ID"` 
    AdvertisementId int64 `json:"advertisementId" gorm:"type:bigint unsigned;comment:广告ID"` 
    models.ModelTime
    models.ControlBy
}

func (Favorites) TableName() string {
    return "favorites"
}

func (e *Favorites) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Favorites) GetId() interface{} {
	return e.Id
}